-- GENERATED SPELL FOR [Dreadwarden] --


function spell0_19744(pUnit, Event) --@Cripple,n/a--
pUnit:FullCastSpellOnTarget(11443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19744', 18000, 1)
end

function spell1_19744(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19744', 5317, 1)
end

function Sorts_19744(pUnit, Event)
local choix_sorts_19744 = math.random(0, 1)
if choix_sorts_19744 == 0 then
pUnit:RegisterEvent('spell0_19744', 1, 1)
end
if choix_sorts_19744 == 1 then
pUnit:RegisterEvent('spell1_19744', 1, 1)
end
end

function mob19744_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19744', math.random(1500, 3000), 1)
end

function mob19744_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19744_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19744_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19744, 1, 'mob19744_Action')
RegisterUnitEvent(19744, 2, 'mob19744_Leave')
RegisterUnitEvent(19744, 3, 'mob19744_Kill')
RegisterUnitEvent(19744, 4, 'mob19744_Die')
